import { createStore } from "vuex";

const store = createStore({
  state: {
    count: 0,
    name:"你好啊,vuex!"
  },
  mutations: {
    increment:(state)=>{
      state.count = state.count+2
      console.log("我是store里的组件")
    }
  },
  action: {

  },
})

export default store
